//
//  ZWLStartLiveVc.m
//  zwlzhibo
//
//  Created by czh on 2016/10/9.
//  Copyright © 2016年 ZWL. All rights reserved.
//

#import "ZWLStartLiveVc.h"
#import "LFLivePreview.h"

@interface ZWLStartLiveVc ()<LFLivePreviewDelegate>

@end

@implementation ZWLStartLiveVc

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor blackColor];
    
    LFLivePreview *liveView = [[LFLivePreview alloc] initWithFrame:self.view.bounds];
    [self.view addSubview:liveView];
    liveView.delegate = self;
    [liveView startLive];
    
    
}

- (void)closeBtnClick
{
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    self.navigationController.navigationBar.hidden = YES;
}

- (void)viewWillDisappear:(BOOL)animated
{
    [super viewWillDisappear:animated];
    self.navigationController.navigationBar.hidden = NO;
}


@end
